const http = require('http');

var htmlArr = [
                {
                    path: '/index.html',
                    name: '首页'
                },
                {
                    path: '/product.html',
                    name: '产品'
                },
                {
                    path: '/solution.html',
                    name: '解决方案'
                },
                {
                    path: '/about.html',
                    name: '关于我们'
                },
            ]

   
var options = { 
    hostname: '127.0.0.1', 
    port: 8888, 
    path: '/' , 
    method: 'GET' 
}
http.request(options, (a,b) => {
    console.log(a, b);
    
})